package com.campus.counseling.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel(description = "测试维度DTO")
@JsonIgnoreProperties(ignoreUnknown = true)
public class TestDimensionDTO {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty(value = "测试ID", required = true)
    @NotNull(message = "测试ID不能为空")
    private Long testId;

    @ApiModelProperty("测试标题")
    private String testTitle;

    @ApiModelProperty(value = "维度键", required = true)
    @NotBlank(message = "维度键不能为空")
    @Size(max = 50, message = "维度键长度不能超过50")
    private String dimensionKey;

    @ApiModelProperty(value = "维度名称", required = true)
    @NotBlank(message = "维度名称不能为空")
    @Size(max = 100, message = "维度名称长度不能超过100")
    private String dimensionName;

    @ApiModelProperty("描述")
    @Size(max = 500, message = "描述长度不能超过500")
    private String description;

    @ApiModelProperty(value = "分数范围", required = true)
    @NotBlank(message = "分数范围不能为空")
    private String scoreRange;

    @ApiModelProperty(value = "权重", required = true)
    @NotNull(message = "权重不能为空")
    private Double weight;

    @ApiModelProperty("状态")
    private Integer status;

} 